//
//  CheckBottomBar.m
//  QSBK
//
//  Created by Eric Wang on 4/23/15.
//  Copyright (c) 2015 Eric Wang. All rights reserved.
//

#import "CheckBottomBar.h"
#import "BottomButton.h"
@implementation CheckBottomBar

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if(self)
    {
        [self addAllSubViews];
    }
    return self;
}

- (void)addAllSubViews
{
    CGFloat w = self.frame.size.width/4;
    CGFloat h = self.frame.size.height;
    
    UIButton *btn1 = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, w, h)];
    btn1.backgroundColor = [UIColor colorWithRed:254/255.0 green:254/255.0 blue:254/255.0 alpha:1.0];
    [btn1 setTitle:@"跳过" forState:UIControlStateNormal];
    [btn1 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [btn1 setTitleColor:[UIColor colorWithRed:254/255.0 green:200/255.0 blue:5/255.0 alpha:1.0]  forState:UIControlStateSelected];
    [btn1 addTarget:self action:@selector(checkClick:) forControlEvents:UIControlEventTouchUpInside];
    
    BottomButton *btn2 = [[BottomButton alloc]initWithFrame:CGRectMake(w, 0, w, h)];
    btn2.backgroundColor = [UIColor colorWithRed:254/255.0 green:254/255.0 blue:254/255.0 alpha:1.0];
    [btn2 setTitle:@"好笑" forState:UIControlStateNormal];
    [btn2 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [btn2 setTitleColor:[UIColor colorWithRed:254/255.0 green:200/255.0 blue:5/255.0 alpha:1.0]  forState:UIControlStateSelected];
    [btn2 setImage:[UIImage imageNamed:@"review_pass.png"] forState:UIControlStateNormal];
    [btn2 addTarget:self action:@selector(checkClick:) forControlEvents:UIControlEventTouchUpInside];
    
    
    
    BottomButton *btn3 = [[BottomButton alloc]initWithFrame:CGRectMake(2*w, 0, w, h)];
    btn3.backgroundColor = [UIColor colorWithRed:254/255.0 green:254/255.0 blue:254/255.0 alpha:1.0];
    [btn3 setTitle:@"没劲" forState:UIControlStateNormal];
    [btn3 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [btn3 setTitleColor:[UIColor colorWithRed:254/255.0 green:200/255.0 blue:5/255.0 alpha:1.0]  forState:UIControlStateSelected];
    [btn3 setImage:[UIImage imageNamed:@"review_no_pass.png"] forState:UIControlStateNormal];
    [btn3 addTarget:self action:@selector(checkClick:) forControlEvents:UIControlEventTouchUpInside];
    
    
    
    UIButton *btn4 = [[UIButton alloc]initWithFrame:CGRectMake(3*w, 0, w, h)];
    btn4.backgroundColor = [UIColor colorWithRed:254/255.0 green:254/255.0 blue:254/255.0 alpha:1.0];
    [btn4 setTitle:@"举报" forState:UIControlStateNormal];
    [btn4 setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [btn4 setTitleColor:[UIColor colorWithRed:254/255.0 green:200/255.0 blue:5/255.0 alpha:1.0]  forState:UIControlStateSelected];
    [btn4 addTarget:self action:@selector(checkClick:) forControlEvents:UIControlEventTouchUpInside];
    
    
    

    
    [self addSubview:btn1];
    [self addSubview:btn2];
    [self addSubview:btn3];
    [self addSubview:btn4];

}


-(void)checkClick:(BottomButton *)button
{
    
}
@end
